Skip to content

Conversation

yoshicn
Copy link

@yoshicn yoshicn commented Aug 14, 2014

Issue found:
autoStart attribute does not properly work on the directive.

  1. autoStart does not exists: Timer starts automatically (expected behaviour).
  2. autoStart exists, set to fasle: Timer starts automatically (expected behaviour).
  3. autoStart exists, set to true: Timer does not start automatically (NOT expected behaviour).

This happens because variable $scope.autoStart (on line 256 in the "if" statement) is a 'string' type.
So "$scope.autoStart === true" never passes.

Proposal solution will fix the problem with variable type.

Issue found:
autoStart attribute does not properly work on the directive.
1) autoStart does not exists: Timer starts automatically (expected behaviour).
2) autoStart exists, set to fasle: Timer starts automatically (expected behaviour).
2) autoStart exists, set to true: Timer does not start automatically (NOT expected behaviour).

This happens because variable $scope.autoStart (on line 256 in the "if" statement) is a 'string' type.
So "$scope.autoStart === true" never passes.

Proposal solution will fix the problem with variable type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant